package com.xuan.mail.domin;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName contact
 */
@TableName(value ="contact")
@Data
public class Contact implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer contactId;

    /**
     * 
     */
    private String contactName;

    /**
     * 
     */
    private String email;

    /**
     * 
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatDate;

    /**
     * 
     */
    private Integer isdeleted;

    /**
     * 
     */
    private String remark;

    private Integer userId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}